package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author gmx
 * @since 2023-07-03
 */
@Data
@TableName("h2_seckill_order")
@Schema(name = "SeckillOrder", description = "")
public class SeckillOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @Schema(description = "活动ID")
    private String seckillActivityId;
    @Schema(description = "秒杀商品ID")
    private String seckillGoodsId;

    @Schema(description = "数量")
    private Integer num;

    @Schema(description = "支付金额")
    private BigDecimal money;

    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "用户")
    private String username;

    @Schema(description = "创建时间")
    private long createTime;

    @Schema(description = "支付时间")
    private long payTime;

    @Schema(description = "支付状态，0未支付，1已支付，-1：支付失败")
    private String status;

}
